package com.jbp.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 登录日志(LoginLog)实体
 */
@ApiModel(value = "LoginLog", description = "登录日志")
@Data
public class LoginLog implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty(value = "用户id", name = "userId")
    private Integer userId;

    @ApiModelProperty(value = "登录ip", name = "ip")
    private String ip;
    private Integer port;

    @ApiModelProperty(value = "设备号", name = "device")
    private String device;
    private String loginType;

    @ApiModelProperty(value = "登录时间", name = "loginTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date loginTime;

    //设备类型
    private String deviceType;
    //设备信息
    private String deviceInfo;
    //渠道
    private String channel;
    //app版本
    private String appVersion;
}
